<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: datatable   datatable-sort.js  (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>datatable&nbsp; <span class="subtitle">3.3.0</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_datatable.html" title="datatable">datatable</a>
                
                 &gt; datatable-sort.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
                        <div class="highlight"><pre><span class="cm">/**</span>
<span class="cm"> * Plugs DataTable with sorting functionality.</span>
<span class="cm"> *</span>
<span class="cm"> * @module datatable</span>
<span class="cm"> * @submodule datatable-sort</span>
<span class="cm"> */</span>

<span class="cm">/**</span>
<span class="cm"> * Adds column sorting to DataTable.</span>
<span class="cm"> * @class DataTableSort</span>
<span class="cm"> * @extends Plugin.Base</span>
<span class="cm"> */</span>
<span class="kd">var</span> <span class="nx">YgetClassName</span> <span class="o">=</span> <span class="nx">Y</span><span class="p">.</span><span class="nx">ClassNameManager</span><span class="p">.</span><span class="nx">getClassName</span><span class="p">,</span>

    <span class="nx">DATATABLE</span> <span class="o">=</span> <span class="s2">&quot;datatable&quot;</span><span class="p">,</span>
    <span class="nx">COLUMN</span> <span class="o">=</span> <span class="s2">&quot;column&quot;</span><span class="p">,</span>
    <span class="nx">ASC</span> <span class="o">=</span> <span class="s2">&quot;asc&quot;</span><span class="p">,</span>
    <span class="nx">DESC</span> <span class="o">=</span> <span class="s2">&quot;desc&quot;</span><span class="p">,</span>

    <span class="c1">//TODO: Don&#39;t use hrefs - use tab/arrow/enter</span>
    <span class="nx">TEMPLATE</span> <span class="o">=</span> <span class="s1">&#39;&lt;a class=&quot;{link_class}&quot; title=&quot;{link_title}&quot; href=&quot;{link_href}&quot;&gt;{value}&lt;/a&gt;&#39;</span><span class="p">;</span>


<span class="kd">function</span> <span class="nx">DataTableSort</span><span class="p">()</span> <span class="p">{</span>
    <span class="nx">DataTableSort</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">constructor</span><span class="p">.</span><span class="nx">apply</span><span class="p">(</span><span class="k">this</span><span class="p">,</span> <span class="nx">arguments</span><span class="p">);</span>
<span class="p">}</span>

<span class="c1">/////////////////////////////////////////////////////////////////////////////</span>
<span class="c1">//</span>
<span class="c1">// STATIC PROPERTIES</span>
<span class="c1">//</span>
<span class="c1">/////////////////////////////////////////////////////////////////////////////</span>
<span class="nx">Y</span><span class="p">.</span><span class="nx">mix</span><span class="p">(</span><span class="nx">DataTableSort</span><span class="p">,</span> <span class="p">{</span>
    <span class="cm">/**</span>
<span class="cm">     * The namespace for the plugin. This will be the property on the host which</span>
<span class="cm">     * references the plugin instance.</span>
<span class="cm">     *</span>
<span class="cm">     * @property NS</span>
<span class="cm">     * @type String</span>
<span class="cm">     * @static</span>
<span class="cm">     * @final</span>
<span class="cm">     * @value &quot;sort&quot;</span>
<span class="cm">     */</span>
    <span class="nx">NS</span><span class="o">:</span> <span class="s2">&quot;sort&quot;</span><span class="p">,</span>

    <span class="cm">/**</span>
<span class="cm">     * Class name.</span>
<span class="cm">     *</span>
<span class="cm">     * @property NAME</span>
<span class="cm">     * @type String</span>
<span class="cm">     * @static</span>
<span class="cm">     * @final</span>
<span class="cm">     * @value &quot;dataTableSort&quot;</span>
<span class="cm">     */</span>
    <span class="nx">NAME</span><span class="o">:</span> <span class="s2">&quot;dataTableSort&quot;</span><span class="p">,</span>

<span class="c1">/////////////////////////////////////////////////////////////////////////////</span>
<span class="c1">//</span>
<span class="c1">// ATTRIBUTES</span>
<span class="c1">//</span>
<span class="c1">/////////////////////////////////////////////////////////////////////////////</span>
    <span class="nx">ATTRS</span><span class="o">:</span> <span class="p">{</span>
        <span class="cm">/**</span>
<span class="cm">        * @attribute trigger</span>
<span class="cm">        * @description Defines the trigger that causes a column to be sorted:</span>
<span class="cm">        * {event, selector}, where &quot;event&quot; is an event type and &quot;selector&quot; is</span>
<span class="cm">        * is a node query selector.</span>
<span class="cm">        * @type Object</span>
<span class="cm">        * @default {event:&quot;click&quot;, selector:&quot;th&quot;}</span>
<span class="cm">        * @writeOnce &quot;initOnly&quot;</span>
<span class="cm">        */</span>
        <span class="nx">trigger</span><span class="o">:</span> <span class="p">{</span>
            <span class="nx">value</span><span class="o">:</span> <span class="p">{</span><span class="nx">event</span><span class="o">:</span><span class="s2">&quot;click&quot;</span><span class="p">,</span> <span class="nx">selector</span><span class="o">:</span><span class="s2">&quot;th&quot;</span><span class="p">},</span>
            <span class="nx">writeOnce</span><span class="o">:</span> <span class="s2">&quot;initOnly&quot;</span>
        <span class="p">},</span>
        
        <span class="cm">/**</span>
<span class="cm">        * @attribute lastSortedBy</span>
<span class="cm">        * @description Describes last known sort state: {key,dir}, where</span>
<span class="cm">        * &quot;key&quot; is column key and &quot;dir&quot; is either &quot;asc&quot; or &quot;desc&quot;.</span>
<span class="cm">        * @type Object</span>
<span class="cm">        */</span>
        <span class="nx">lastSortedBy</span><span class="o">:</span> <span class="p">{</span>
            <span class="nx">setter</span><span class="o">:</span> <span class="s2">&quot;_setLastSortedBy&quot;</span><span class="p">,</span>
            <span class="nx">lazyAdd</span><span class="o">:</span> <span class="kc">false</span>
        <span class="p">},</span>
        
        <span class="cm">/**</span>
<span class="cm">        * @attribute template</span>
<span class="cm">        * @description Tokenized markup template for TH sort element.</span>
<span class="cm">        * @type String</span>
<span class="cm">        * @default &#39;&lt;a class=&quot;{link_class}&quot; title=&quot;{link_title}&quot; href=&quot;{link_href}&quot;&gt;{value}&lt;/a&gt;&#39;</span>
<span class="cm">        */</span>
        <span class="nx">template</span><span class="o">:</span> <span class="p">{</span>
            <span class="nx">value</span><span class="o">:</span> <span class="nx">TEMPLATE</span>
        <span class="p">}</span>
    <span class="p">}</span>
<span class="p">});</span>

<span class="c1">/////////////////////////////////////////////////////////////////////////////</span>
<span class="c1">//</span>
<span class="c1">// PROTOTYPE</span>
<span class="c1">//</span>
<span class="c1">/////////////////////////////////////////////////////////////////////////////</span>
<span class="nx">Y</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">DataTableSort</span><span class="p">,</span> <span class="nx">Y</span><span class="p">.</span><span class="nx">Plugin</span><span class="p">.</span><span class="nx">Base</span><span class="p">,</span> <span class="p">{</span>

    <span class="c1">/////////////////////////////////////////////////////////////////////////////</span>
    <span class="c1">//</span>
    <span class="c1">// METHODS</span>
    <span class="c1">//</span>
    <span class="c1">/////////////////////////////////////////////////////////////////////////////</span>
    <span class="cm">/**</span>
<span class="cm">    * Initializer.</span>
<span class="cm">    *</span>
<span class="cm">    * @method initializer</span>
<span class="cm">    * @param config {Object} Config object.</span>
<span class="cm">    * @private</span>
<span class="cm">    */</span>
    <span class="nx">initializer</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">config</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;host&quot;</span><span class="p">),</span>
            <span class="nx">trigger</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;trigger&quot;</span><span class="p">);</span>
            
        <span class="nx">dt</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;recordset&quot;</span><span class="p">).</span><span class="nx">plug</span><span class="p">(</span><span class="nx">Y</span><span class="p">.</span><span class="nx">Plugin</span><span class="p">.</span><span class="nx">RecordsetSort</span><span class="p">,</span> <span class="p">{</span><span class="nx">dt</span><span class="o">:</span> <span class="nx">dt</span><span class="p">});</span>
        <span class="nx">dt</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;recordset&quot;</span><span class="p">).</span><span class="nx">sort</span><span class="p">.</span><span class="nx">addTarget</span><span class="p">(</span><span class="nx">dt</span><span class="p">);</span>
        
        <span class="c1">// Wrap link around TH value</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">doBefore</span><span class="p">(</span><span class="s2">&quot;_createTheadThNode&quot;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_beforeCreateTheadThNode</span><span class="p">);</span>
        
        <span class="c1">// Add class</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">doBefore</span><span class="p">(</span><span class="s2">&quot;_attachTheadThNode&quot;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_beforeAttachTheadThNode</span><span class="p">);</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">doBefore</span><span class="p">(</span><span class="s2">&quot;_attachTbodyTdNode&quot;</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">_beforeAttachTbodyTdNode</span><span class="p">);</span>

        <span class="c1">// Attach trigger handlers</span>
        <span class="nx">dt</span><span class="p">.</span><span class="nx">delegate</span><span class="p">(</span><span class="nx">trigger</span><span class="p">.</span><span class="nx">event</span><span class="p">,</span> <span class="nx">Y</span><span class="p">.</span><span class="nx">bind</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">_onEventSortColumn</span><span class="p">,</span><span class="k">this</span><span class="p">),</span> <span class="nx">trigger</span><span class="p">.</span><span class="nx">selector</span><span class="p">);</span>

        <span class="c1">// Attach UI hooks</span>
        <span class="nx">dt</span><span class="p">.</span><span class="nx">after</span><span class="p">(</span><span class="s2">&quot;recordsetSort:sort&quot;</span><span class="p">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_uiSetRecordset</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;recordset&quot;</span><span class="p">));</span>
        <span class="p">});</span>
        <span class="k">this</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;lastSortedByChange&quot;</span><span class="p">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_uiSetLastSortedBy</span><span class="p">(</span><span class="nx">e</span><span class="p">.</span><span class="nx">prevVal</span><span class="p">,</span> <span class="nx">e</span><span class="p">.</span><span class="nx">newVal</span><span class="p">,</span> <span class="nx">dt</span><span class="p">);</span>
        <span class="p">});</span>

        <span class="c1">//TODO</span>
        <span class="c1">//dt.after(&quot;recordset:mutation&quot;, function() {//reset lastSortedBy});</span>
        
        <span class="c1">//TODO</span>
        <span class="c1">//add Column sortFn ATTR</span>
        
        <span class="c1">// Update UI after the fact (render-then-plug case)</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">dt</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;rendered&quot;</span><span class="p">))</span> <span class="p">{</span>
            <span class="nx">dt</span><span class="p">.</span><span class="nx">_uiSetColumnset</span><span class="p">(</span><span class="nx">dt</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;columnset&quot;</span><span class="p">));</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">_uiSetLastSortedBy</span><span class="p">(</span><span class="kc">null</span><span class="p">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;lastSortedBy&quot;</span><span class="p">),</span> <span class="nx">dt</span><span class="p">);</span>
        <span class="p">}</span>
    <span class="p">},</span>

    <span class="cm">/**</span>
<span class="cm">    * @method _setLastSortedBy</span>
<span class="cm">    * @description Normalizes lastSortedBy</span>
<span class="cm">    * @param val {String | Object} {key, dir} or &quot;key&quot;</span>
<span class="cm">    * @returns {key, dir, notdir}</span>
<span class="cm">    * @private</span>
<span class="cm">    */</span>
    <span class="nx">_setLastSortedBy</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">val</span><span class="p">)</span> <span class="p">{</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">Y</span><span class="p">.</span><span class="nx">Lang</span><span class="p">.</span><span class="nx">isString</span><span class="p">(</span><span class="nx">val</span><span class="p">))</span> <span class="p">{</span>
            <span class="k">return</span> <span class="p">{</span><span class="nx">key</span><span class="o">:</span><span class="nx">val</span><span class="p">,</span> <span class="nx">dir</span><span class="o">:</span><span class="s2">&quot;asc&quot;</span><span class="p">,</span> <span class="nx">notdir</span><span class="o">:</span><span class="s2">&quot;desc&quot;</span><span class="p">};</span>
        <span class="p">}</span>
        <span class="k">else</span> <span class="k">if</span> <span class="p">(</span><span class="nx">val</span> <span class="o">&amp;&amp;</span> <span class="nx">val</span><span class="p">.</span><span class="nx">key</span><span class="p">)</span> <span class="p">{</span>
            <span class="k">if</span><span class="p">(</span><span class="nx">val</span><span class="p">.</span><span class="nx">dir</span> <span class="o">===</span> <span class="s2">&quot;desc&quot;</span><span class="p">)</span> <span class="p">{</span>
                <span class="k">return</span> <span class="p">{</span><span class="nx">key</span><span class="o">:</span><span class="nx">val</span><span class="p">.</span><span class="nx">key</span><span class="p">,</span> <span class="nx">dir</span><span class="o">:</span><span class="s2">&quot;desc&quot;</span><span class="p">,</span> <span class="nx">notdir</span><span class="o">:</span><span class="s2">&quot;asc&quot;</span><span class="p">};</span>
            <span class="p">}</span>
            <span class="k">else</span> <span class="p">{</span>
                <span class="k">return</span> <span class="p">{</span><span class="nx">key</span><span class="o">:</span><span class="nx">val</span><span class="p">.</span><span class="nx">key</span><span class="p">,</span> <span class="nx">dir</span><span class="o">:</span><span class="s2">&quot;asc&quot;</span><span class="p">,</span> <span class="nx">notdir</span><span class="o">:</span><span class="s2">&quot;desc&quot;</span><span class="p">};</span>
            <span class="p">}</span>
        <span class="p">}</span>
        <span class="k">else</span> <span class="p">{</span>
            <span class="k">return</span> <span class="kc">null</span><span class="p">;</span>
        <span class="p">}</span>
    <span class="p">},</span>

    <span class="cm">/**</span>
<span class="cm">     * Updates sort UI.</span>
<span class="cm">     *</span>
<span class="cm">     * @method _uiSetLastSortedBy</span>
<span class="cm">     * @param val {Object} New lastSortedBy object {key,dir}.</span>
<span class="cm">     * @param dt {Y.DataTable.Base} Host.</span>
<span class="cm">     * @protected</span>
<span class="cm">     */</span>
    <span class="nx">_uiSetLastSortedBy</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">prevVal</span><span class="p">,</span> <span class="nx">newVal</span><span class="p">,</span> <span class="nx">dt</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">prevKey</span> <span class="o">=</span> <span class="nx">prevVal</span> <span class="o">&amp;&amp;</span> <span class="nx">prevVal</span><span class="p">.</span><span class="nx">key</span><span class="p">,</span>
            <span class="nx">prevDir</span> <span class="o">=</span> <span class="nx">prevVal</span> <span class="o">&amp;&amp;</span> <span class="nx">prevVal</span><span class="p">.</span><span class="nx">dir</span><span class="p">,</span>
            <span class="nx">newKey</span> <span class="o">=</span> <span class="nx">newVal</span> <span class="o">&amp;&amp;</span> <span class="nx">newVal</span><span class="p">.</span><span class="nx">key</span><span class="p">,</span>
            <span class="nx">newDir</span> <span class="o">=</span> <span class="nx">newVal</span> <span class="o">&amp;&amp;</span> <span class="nx">newVal</span><span class="p">.</span><span class="nx">dir</span><span class="p">,</span>
            <span class="nx">cs</span> <span class="o">=</span> <span class="nx">dt</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;columnset&quot;</span><span class="p">),</span>
            <span class="nx">prevColumn</span> <span class="o">=</span> <span class="nx">cs</span><span class="p">.</span><span class="nx">keyHash</span><span class="p">[</span><span class="nx">prevKey</span><span class="p">],</span>
            <span class="nx">newColumn</span> <span class="o">=</span> <span class="nx">cs</span><span class="p">.</span><span class="nx">keyHash</span><span class="p">[</span><span class="nx">newKey</span><span class="p">],</span>
            <span class="nx">tbodyNode</span> <span class="o">=</span> <span class="nx">dt</span><span class="p">.</span><span class="nx">_tbodyNode</span><span class="p">,</span>
            <span class="nx">prevRowList</span><span class="p">,</span> <span class="nx">newRowList</span><span class="p">;</span>

        <span class="c1">// Clear previous UI</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">prevColumn</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">prevColumn</span><span class="p">.</span><span class="nx">thNode</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="nx">prevDir</span><span class="p">));</span>
            <span class="nx">prevRowList</span> <span class="o">=</span> <span class="nx">tbodyNode</span><span class="p">.</span><span class="nx">all</span><span class="p">(</span><span class="s2">&quot;.&quot;</span><span class="o">+</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">COLUMN</span><span class="p">,</span> <span class="nx">prevColumn</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;id&quot;</span><span class="p">)));</span>
            <span class="nx">prevRowList</span><span class="p">.</span><span class="nx">removeClass</span><span class="p">(</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="nx">prevDir</span><span class="p">));</span>
        <span class="p">}</span>

        <span class="c1">// Add new sort UI</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">newColumn</span><span class="p">)</span> <span class="p">{</span>
            <span class="nx">newColumn</span><span class="p">.</span><span class="nx">thNode</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="nx">newDir</span><span class="p">));</span>
            <span class="nx">newRowList</span> <span class="o">=</span> <span class="nx">tbodyNode</span><span class="p">.</span><span class="nx">all</span><span class="p">(</span><span class="s2">&quot;.&quot;</span><span class="o">+</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">COLUMN</span><span class="p">,</span> <span class="nx">newColumn</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;id&quot;</span><span class="p">)));</span>
            <span class="nx">newRowList</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="nx">newDir</span><span class="p">));</span>
        <span class="p">}</span>
    <span class="p">},</span>

    <span class="cm">/**</span>
<span class="cm">    * Before header cell element is created, inserts link markup around {value}.</span>
<span class="cm">    *</span>
<span class="cm">    * @method _beforeCreateTheadThNode</span>
<span class="cm">    * @param o {Object} {value, column, tr}.</span>
<span class="cm">    * @protected</span>
<span class="cm">    */</span>
    <span class="nx">_beforeCreateTheadThNode</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;sortable&quot;</span><span class="p">))</span> <span class="p">{</span>
            <span class="nx">o</span><span class="p">.</span><span class="nx">value</span> <span class="o">=</span> <span class="nx">Y</span><span class="p">.</span><span class="nx">substitute</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;template&quot;</span><span class="p">),</span> <span class="p">{</span>
                <span class="nx">link_class</span><span class="o">:</span> <span class="nx">o</span><span class="p">.</span><span class="nx">link_class</span> <span class="o">||</span> <span class="s2">&quot;&quot;</span><span class="p">,</span>
                <span class="nx">link_title</span><span class="o">:</span> <span class="s2">&quot;title&quot;</span><span class="p">,</span>
                <span class="nx">link_href</span><span class="o">:</span> <span class="s2">&quot;#&quot;</span><span class="p">,</span>
                <span class="nx">value</span><span class="o">:</span> <span class="nx">o</span><span class="p">.</span><span class="nx">value</span>
            <span class="p">});</span>
        <span class="p">}</span>
    <span class="p">},</span>

    <span class="cm">/**</span>
<span class="cm">    * Before header cell element is attached, sets applicable class names.</span>
<span class="cm">    *</span>
<span class="cm">    * @method _beforeAttachTheadThNode</span>
<span class="cm">    * @param o {Object} {value, column, tr}.</span>
<span class="cm">    * @protected</span>
<span class="cm">    */</span>
    <span class="nx">_beforeAttachTheadThNode</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">lastSortedBy</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;lastSortedBy&quot;</span><span class="p">),</span>
            <span class="nx">key</span> <span class="o">=</span> <span class="nx">lastSortedBy</span> <span class="o">&amp;&amp;</span> <span class="nx">lastSortedBy</span><span class="p">.</span><span class="nx">key</span><span class="p">,</span>
            <span class="nx">dir</span> <span class="o">=</span> <span class="nx">lastSortedBy</span> <span class="o">&amp;&amp;</span> <span class="nx">lastSortedBy</span><span class="p">.</span><span class="nx">dir</span><span class="p">,</span>
            <span class="nx">notdir</span> <span class="o">=</span> <span class="nx">lastSortedBy</span> <span class="o">&amp;&amp;</span> <span class="nx">lastSortedBy</span><span class="p">.</span><span class="nx">notdir</span><span class="p">;</span>

        <span class="c1">// This Column is sortable</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;sortable&quot;</span><span class="p">))</span> <span class="p">{</span>
            <span class="nx">o</span><span class="p">.</span><span class="nx">th</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="s2">&quot;sortable&quot;</span><span class="p">));</span>
        <span class="p">}</span>
        <span class="c1">// This Column is currently sorted</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">key</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">key</span> <span class="o">===</span> <span class="nx">o</span><span class="p">.</span><span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">)))</span> <span class="p">{</span>
            <span class="nx">o</span><span class="p">.</span><span class="nx">th</span><span class="p">.</span><span class="nx">replaceClass</span><span class="p">(</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="nx">notdir</span><span class="p">),</span> <span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="nx">dir</span><span class="p">));</span>
        <span class="p">}</span>
    <span class="p">},</span>

    <span class="cm">/**</span>
<span class="cm">    * Before header cell element is attached, sets applicable class names.</span>
<span class="cm">    *</span>
<span class="cm">    * @method _before_beforeAttachTbodyTdNode</span>
<span class="cm">    * @param o {Object} {record, column, tr, headers, classnames, value}.</span>
<span class="cm">    * @protected</span>
<span class="cm">    */</span>
    <span class="nx">_beforeAttachTbodyTdNode</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">o</span><span class="p">)</span> <span class="p">{</span>
        <span class="kd">var</span> <span class="nx">lastSortedBy</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;lastSortedBy&quot;</span><span class="p">),</span>
            <span class="nx">key</span> <span class="o">=</span> <span class="nx">lastSortedBy</span> <span class="o">&amp;&amp;</span> <span class="nx">lastSortedBy</span><span class="p">.</span><span class="nx">key</span><span class="p">,</span>
            <span class="nx">dir</span> <span class="o">=</span> <span class="nx">lastSortedBy</span> <span class="o">&amp;&amp;</span> <span class="nx">lastSortedBy</span><span class="p">.</span><span class="nx">dir</span><span class="p">,</span>
            <span class="nx">notdir</span> <span class="o">=</span> <span class="nx">lastSortedBy</span> <span class="o">&amp;&amp;</span> <span class="nx">lastSortedBy</span><span class="p">.</span><span class="nx">notdir</span><span class="p">;</span>

        <span class="c1">// This Column is sortable</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">o</span><span class="p">.</span><span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;sortable&quot;</span><span class="p">))</span> <span class="p">{</span>
            <span class="nx">o</span><span class="p">.</span><span class="nx">td</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="s2">&quot;sortable&quot;</span><span class="p">));</span>
        <span class="p">}</span>
        <span class="c1">// This Column is currently sorted</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">key</span> <span class="o">&amp;&amp;</span> <span class="p">(</span><span class="nx">key</span> <span class="o">===</span> <span class="nx">o</span><span class="p">.</span><span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">)))</span> <span class="p">{</span>
            <span class="nx">o</span><span class="p">.</span><span class="nx">td</span><span class="p">.</span><span class="nx">replaceClass</span><span class="p">(</span><span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="nx">notdir</span><span class="p">),</span> <span class="nx">YgetClassName</span><span class="p">(</span><span class="nx">DATATABLE</span><span class="p">,</span> <span class="nx">dir</span><span class="p">));</span>
        <span class="p">}</span>
    <span class="p">},</span>
    <span class="cm">/**</span>
<span class="cm">    * In response to the &quot;trigger&quot; event, sorts the underlying Recordset and</span>
<span class="cm">    * updates the lastSortedBy attribute.</span>
<span class="cm">    *</span>
<span class="cm">    * @method _onEventSortColumn</span>
<span class="cm">    * @param o {Object} {value, column, tr}.</span>
<span class="cm">    * @protected</span>
<span class="cm">    */</span>
    <span class="nx">_onEventSortColumn</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
        <span class="nx">e</span><span class="p">.</span><span class="nx">halt</span><span class="p">();</span>
        <span class="c1">//TODO: normalize e.currentTarget to TH</span>
        <span class="kd">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;host&quot;</span><span class="p">),</span>
            <span class="nx">column</span> <span class="o">=</span> <span class="nx">dt</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;columnset&quot;</span><span class="p">).</span><span class="nx">idHash</span><span class="p">[</span><span class="nx">e</span><span class="p">.</span><span class="nx">currentTarget</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;id&quot;</span><span class="p">)],</span>
            <span class="nx">key</span> <span class="o">=</span> <span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;key&quot;</span><span class="p">),</span>
            <span class="nx">field</span> <span class="o">=</span> <span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;field&quot;</span><span class="p">),</span>
            <span class="nx">lastSortedBy</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;lastSortedBy&quot;</span><span class="p">),</span>
            <span class="nx">dir</span> <span class="o">=</span> <span class="p">(</span><span class="nx">lastSortedBy</span> <span class="o">&amp;&amp;</span>
                <span class="nx">lastSortedBy</span><span class="p">.</span><span class="nx">key</span> <span class="o">===</span> <span class="nx">key</span> <span class="o">&amp;&amp;</span>
                <span class="nx">lastSortedBy</span><span class="p">.</span><span class="nx">dir</span> <span class="o">===</span> <span class="nx">ASC</span><span class="p">)</span> <span class="o">?</span> <span class="nx">DESC</span> <span class="o">:</span> <span class="nx">ASC</span><span class="p">,</span>
            <span class="nx">sorter</span> <span class="o">=</span> <span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;sortFn&quot;</span><span class="p">);</span>
        <span class="k">if</span><span class="p">(</span><span class="nx">column</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;sortable&quot;</span><span class="p">))</span> <span class="p">{</span>
            <span class="nx">dt</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s2">&quot;recordset&quot;</span><span class="p">).</span><span class="nx">sort</span><span class="p">.</span><span class="nx">sort</span><span class="p">(</span><span class="nx">field</span><span class="p">,</span> <span class="nx">dir</span> <span class="o">===</span> <span class="nx">DESC</span><span class="p">,</span> <span class="nx">sorter</span><span class="p">);</span>
            <span class="k">this</span><span class="p">.</span><span class="nx">set</span><span class="p">(</span><span class="s2">&quot;lastSortedBy&quot;</span><span class="p">,</span> <span class="p">{</span><span class="nx">key</span><span class="o">:</span> <span class="nx">key</span><span class="p">,</span> <span class="nx">dir</span><span class="o">:</span> <span class="nx">dir</span><span class="p">});</span>
        <span class="p">}</span>
    <span class="p">}</span>
<span class="p">});</span>

<span class="nx">Y</span><span class="p">.</span><span class="nx">namespace</span><span class="p">(</span><span class="s2">&quot;Plugin&quot;</span><span class="p">).</span><span class="nx">DataTableSort</span> <span class="o">=</span> <span class="nx">DataTableSort</span><span class="p">;</span>
</pre></div>

                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_align-plugin.html" title="align-plugin">align-plugin</a></li>
                                <li class=""><a href="module_anim.html" title="anim">anim</a></li>
                                <li class=""><a href="module_arraysort.html" title="arraysort">arraysort</a></li>
                                <li class=""><a href="module_async-queue.html" title="async-queue">async-queue</a></li>
                                <li class=""><a href="module_attribute.html" title="attribute">attribute</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_base.html" title="base">base</a></li>
                                <li class=""><a href="module_cache.html" title="cache">cache</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_classnamemanager.html" title="classnamemanager">classnamemanager</a></li>
                                <li class=""><a href="module_collection.html" title="collection">collection</a></li>
                                <li class=""><a href="module_console.html" title="console">console</a></li>
                                <li class=""><a href="module_console-filters.html" title="console-filters">console-filters</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_dataschema.html" title="dataschema">dataschema</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class="selected"><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_datatype.html" title="datatype">datatype</a></li>
                                <li class=""><a href="module_dd.html" title="dd">dd</a></li>
                                <li class=""><a href="module_dial.html" title="dial">dial</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dump.html" title="dump">dump</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_escape.html" title="escape">escape</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_event-custom.html" title="event-custom">event-custom</a></li>
                                <li class=""><a href="module_event-gestures.html" title="event-gestures">event-gestures</a></li>
                                <li class=""><a href="module_event-simulate.html" title="event-simulate">event-simulate</a></li>
                                <li class=""><a href="module_event-touch.html" title="event-touch">event-touch</a></li>
                                <li class=""><a href="module_event-valuechange.html" title="event-valuechange">event-valuechange</a></li>
                                <li class=""><a href="module_highlight.html" title="highlight">highlight</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_history-deprecated.html" title="history-deprecated">history-deprecated</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_intl.html" title="intl">intl</a></li>
                                <li class=""><a href="module_io.html" title="io">io</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_jsonp.html" title="jsonp">jsonp</a></li>
                                <li class=""><a href="module_loader.html" title="loader">loader</a></li>
                                <li class=""><a href="module_node.html" title="node">node</a></li>
                                <li class=""><a href="module_node-flick.html" title="node-flick">node-flick</a></li>
                                <li class=""><a href="module_node-focusmanager.html" title="node-focusmanager">node-focusmanager</a></li>
                                <li class=""><a href="module_node-menunav.html" title="node-menunav">node-menunav</a></li>
                                <li class=""><a href="module_oop.html" title="oop">oop</a></li>
                                <li class=""><a href="module_overlay.html" title="overlay">overlay</a></li>
                                <li class=""><a href="module_plugin.html" title="plugin">plugin</a></li>
                                <li class=""><a href="module_pluginhost.html" title="pluginhost">pluginhost</a></li>
                                <li class=""><a href="module_pluginhost-base.html" title="pluginhost-base">pluginhost-base</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_querystring.html" title="querystring">querystring</a></li>
                                <li class=""><a href="module_queue-promote.html" title="queue-promote">queue-promote</a></li>
                                <li class=""><a href="module_recordset.html" title="recordset">recordset</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_scrollview.html" title="scrollview">scrollview</a></li>
                                <li class=""><a href="module_scrollview-base.html" title="scrollview-base">scrollview-base</a></li>
                                <li class=""><a href="module_scrollview-base-ie.html" title="scrollview-base-ie">scrollview-base-ie</a></li>
                                <li class=""><a href="module_scrollview-paginator.html" title="scrollview-paginator">scrollview-paginator</a></li>
                                <li class=""><a href="module_scrollview-scrollbars.html" title="scrollview-scrollbars">scrollview-scrollbars</a></li>
                                <li class=""><a href="module_shim-plugin.html" title="shim-plugin">shim-plugin</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_sortable.html" title="sortable">sortable</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_substitute.html" title="substitute">substitute</a></li>
                                <li class=""><a href="module_swf.html" title="swf">swf</a></li>
                                <li class=""><a href="module_swfdetect.html" title="swfdetect">swfdetect</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_test.html" title="test">test</a></li>
                                <li class=""><a href="module_text.html" title="text">text</a></li>
                                <li class=""><a href="module_transition.html" title="transition">transition</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_widget.html" title="widget">widget</a></li>
                                <li class=""><a href="module_widget-anim.html" title="widget-anim">widget-anim</a></li>
                                <li class=""><a href="module_widget-base-ie.html" title="widget-base-ie">widget-base-ie</a></li>
                                <li class=""><a href="module_widget-child.html" title="widget-child">widget-child</a></li>
                                <li class=""><a href="module_widget-locale.html" title="widget-locale">widget-locale</a></li>
                                <li class=""><a href="module_widget-parent.html" title="widget-parent">widget-parent</a></li>
                                <li class=""><a href="module_widget-position.html" title="widget-position">widget-position</a></li>
                                <li class=""><a href="module_widget-position-align.html" title="widget-position-align">widget-position-align</a></li>
                                <li class=""><a href="module_widget-position-constrain.html" title="widget-position-constrain">widget-position-constrain</a></li>
                                <li class=""><a href="module_widget-stack.html" title="widget-stack">widget-stack</a></li>
                                <li class=""><a href="module_widget-stdmod.html" title="widget-stdmod">widget-stdmod</a></li>
                                <li class=""><a href="module_yql.html" title="yql">yql</a></li>
                                <li class=""><a href="module_yui.html" title="yui">yui</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="Column.html" title="Column">Column</a></li>
                                <li class=""><a href="Columnset.html" title="Columnset">Columnset</a></li>
                                <li class=""><a href="DataTable.Base.html" title="DataTable.Base">DataTable.Base</a></li>
                                <li class=""><a href="DataTableDataSource.html" title="DataTableDataSource">DataTableDataSource</a></li>
                                <li class=""><a href="DataTableScroll.html" title="DataTableScroll">DataTableScroll</a></li>
                                <li class=""><a href="DataTableSort.html" title="DataTableSort">DataTableSort</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class=""><a href="column.js.html" title="column.js">column.js</a></li>
                                <li class=""><a href="columnset.js.html" title="columnset.js">columnset.js</a></li>
                                <li class=""><a href="datatable-base-vars.js.html" title="datatable-base-vars.js">datatable-base-vars.js</a></li>
                                <li class=""><a href="datatable-base.js.html" title="datatable-base.js">datatable-base.js</a></li>
                                <li class=""><a href="datatable-colresize.js.html" title="datatable-colresize.js">datatable-colresize.js</a></li>
                                <li class=""><a href="datatable-datasource.js.html" title="datatable-datasource.js">datatable-datasource.js</a></li>
                                <li class=""><a href="datatable-scroll.js.html" title="datatable-scroll.js">datatable-scroll.js</a></li>
                                <li class="selected"><a href="datatable-sort.js.html" title="datatable-sort.js">datatable-sort.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2011 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">

    var ALL_YUI_PROPS = [{"access": "", "host": "Column", "name": "abbr", "url": "Column.html#config_abbr", "type": "config"}, {"access": "", "host": "Column", "name": "abbrChange", "url": "Column.html#event_abbrChange", "type": "event"}, {"access": "protected", "host": "DataTable.Base", "name": "_addCaptionNode", "url": "DataTable.Base.html#method__addCaptionNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addColgroupNode", "url": "DataTable.Base.html#method__addColgroupNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addMessageNode", "url": "DataTable.Base.html#method__addMessageNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addTableNode", "url": "DataTable.Base.html#method__addTableNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addTbodyNode", "url": "DataTable.Base.html#method__addTbodyNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addTbodyTdNode", "url": "DataTable.Base.html#method__addTbodyTdNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addTbodyTrNode", "url": "DataTable.Base.html#method__addTbodyTrNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addTheadNode", "url": "DataTable.Base.html#method__addTheadNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addTheadThNode", "url": "DataTable.Base.html#method__addTheadThNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_addTheadTrNode", "url": "DataTable.Base.html#method__addTheadTrNode", "type": "method"}, {"access": "private", "host": "Column", "name": "_afterAbbrChange", "url": "Column.html#method__afterAbbrChange", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_afterCaptionChange", "url": "DataTable.Base.html#method__afterCaptionChange", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_afterColumnsetChange", "url": "DataTable.Base.html#method__afterColumnsetChange", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_afterRecordsetChange", "url": "DataTable.Base.html#method__afterRecordsetChange", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_afterSummaryChange", "url": "DataTable.Base.html#method__afterSummaryChange", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_attachTbodyTdNode", "url": "DataTable.Base.html#method__attachTbodyTdNode", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_attachTbodyTdNode", "url": "DataTableScroll.html#method__attachTbodyTdNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_attachTbodyTrNode", "url": "DataTable.Base.html#method__attachTbodyTrNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_attachTheadThNode", "url": "DataTable.Base.html#method__attachTheadThNode", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_attachTheadThNode", "url": "DataTableScroll.html#method__attachTheadThNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_attachTheadTrNode", "url": "DataTable.Base.html#method__attachTheadTrNode", "type": "method"}, {"access": "protected", "host": "DataTableSort", "name": "_beforeAttachTheadThNode", "url": "DataTableSort.html#method__beforeAttachTheadThNode", "type": "method"}, {"access": "protected", "host": "DataTableSort", "name": "_before_beforeAttachTbodyTdNode", "url": "DataTableSort.html#method__before_beforeAttachTbodyTdNode", "type": "method"}, {"access": "protected", "host": "DataTableSort", "name": "_beforeCreateTheadThNode", "url": "DataTableSort.html#method__beforeCreateTheadThNode", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "bindUI", "url": "DataTable.Base.html#method_bindUI", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_bodyContainerNode", "url": "DataTableScroll.html#property__bodyContainerNode", "type": "property"}, {"access": "", "host": "DataTable.Base", "name": "caption", "url": "DataTable.Base.html#config_caption", "type": "config"}, {"access": "", "host": "DataTable.Base", "name": "captionChange", "url": "DataTable.Base.html#event_captionChange", "type": "event"}, {"access": "private", "host": "Columnset", "name": "_cascadePropertiesToChildren", "url": "Columnset.html#method__cascadePropertiesToChildren", "type": "method"}, {"access": "", "host": "Column", "name": "children", "url": "Column.html#config_children", "type": "config"}, {"access": "", "host": "Column", "name": "childrenChange", "url": "Column.html#event_childrenChange", "type": "event"}, {"access": "", "host": "DataTableScroll", "name": "COLOR_COLUMNFILLER", "url": "DataTableScroll.html#config_COLOR_COLUMNFILLER", "type": "config"}, {"access": "", "host": "DataTableScroll", "name": "COLOR_COLUMNFILLERChange", "url": "DataTableScroll.html#event_COLOR_COLUMNFILLERChange", "type": "event"}, {"access": "", "host": "Column", "name": "colSpan", "url": "Column.html#property_colSpan", "type": "property"}, {"access": "", "host": "DataTable.Base", "name": "columnset", "url": "DataTable.Base.html#config_columnset", "type": "config"}, {"access": "", "host": "DataTable.Base", "name": "columnsetChange", "url": "DataTable.Base.html#event_columnsetChange", "type": "event"}, {"access": "private", "host": "DataTableScroll", "name": "_createBodyContainer", "url": "DataTableScroll.html#method__createBodyContainer", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_createHeaderContainer", "url": "DataTableScroll.html#method__createHeaderContainer", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_createTbodyTdNode", "url": "DataTable.Base.html#method__createTbodyTdNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_createTbodyTrNode", "url": "DataTable.Base.html#method__createTbodyTrNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_createTheadThNode", "url": "DataTable.Base.html#method__createTheadThNode", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_createTheadTrNode", "url": "DataTable.Base.html#method__createTheadTrNode", "type": "method"}, {"access": "", "host": "DataTableDataSource", "name": "datasource", "url": "DataTableDataSource.html#config_datasource", "type": "config"}, {"access": "", "host": "DataTableDataSource", "name": "datasourceChange", "url": "DataTableDataSource.html#event_datasourceChange", "type": "event"}, {"access": "private", "host": "Column", "name": "_defaultField", "url": "Column.html#method__defaultField", "type": "method"}, {"access": "private", "host": "Column", "name": "_defaultId", "url": "Column.html#method__defaultId", "type": "method"}, {"access": "private", "host": "Column", "name": "_defaultKey", "url": "Column.html#method__defaultKey", "type": "method"}, {"access": "private", "host": "Column", "name": "_defaultLabel", "url": "Column.html#method__defaultLabel", "type": "method"}, {"access": "", "host": "Columnset", "name": "definitions", "url": "Columnset.html#config_definitions", "type": "config"}, {"access": "", "host": "Columnset", "name": "definitionsChange", "url": "Columnset.html#event_definitionsChange", "type": "event"}, {"access": "private", "host": "Column", "name": "destructor", "url": "Column.html#method_destructor", "type": "method"}, {"access": "private", "host": "Columnset", "name": "destructor", "url": "Columnset.html#method_destructor", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "destructor", "url": "DataTable.Base.html#method_destructor", "type": "method"}, {"access": "", "host": "Column", "name": "field", "url": "Column.html#config_field", "type": "config"}, {"access": "", "host": "Column", "name": "fieldChange", "url": "Column.html#event_fieldChange", "type": "event"}, {"access": "", "host": "DataTable.Base", "name": "formatDataCell", "url": "DataTable.Base.html#method_formatDataCell", "type": "method"}, {"access": "private", "host": "Column", "name": "_getClassnames", "url": "Column.html#method__getClassnames", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_headerContainerNode", "url": "DataTableScroll.html#property__headerContainerNode", "type": "property"}, {"access": "", "host": "Column", "name": "headers", "url": "Column.html#property_headers", "type": "property"}, {"access": "", "host": "DataTableScroll", "name": "height", "url": "DataTableScroll.html#config_height", "type": "config"}, {"access": "", "host": "DataTableScroll", "name": "heightChange", "url": "DataTableScroll.html#event_heightChange", "type": "event"}, {"access": "", "host": "Column", "name": "id", "url": "Column.html#config_id", "type": "config"}, {"access": "", "host": "Column", "name": "idChange", "url": "Column.html#event_idChange", "type": "event"}, {"access": "", "host": "Columnset", "name": "idHash", "url": "Columnset.html#property_idHash", "type": "property"}, {"access": "private", "host": "Column", "name": "initializer", "url": "Column.html#method_initializer", "type": "method"}, {"access": "private", "host": "Columnset", "name": "initializer", "url": "Columnset.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "initializer", "url": "DataTable.Base.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataTableDataSource", "name": "initializer", "url": "DataTableDataSource.html#method_initializer", "type": "method"}, {"access": "private", "host": "DataTableSort", "name": "initializer", "url": "DataTableSort.html#method_initializer", "type": "method"}, {"access": "", "host": "DataTableDataSource", "name": "initialRequest", "url": "DataTableDataSource.html#config_initialRequest", "type": "config"}, {"access": "", "host": "DataTableDataSource", "name": "initialRequestChange", "url": "DataTableDataSource.html#event_initialRequestChange", "type": "event"}, {"access": "", "host": "Column", "name": "key", "url": "Column.html#config_key", "type": "config"}, {"access": "", "host": "Column", "name": "keyChange", "url": "Column.html#event_keyChange", "type": "event"}, {"access": "", "host": "Columnset", "name": "keyHash", "url": "Columnset.html#property_keyHash", "type": "property"}, {"access": "", "host": "Column", "name": "keyIndex", "url": "Column.html#property_keyIndex", "type": "property"}, {"access": "", "host": "Columnset", "name": "keys", "url": "Columnset.html#property_keys", "type": "property"}, {"access": "", "host": "Column", "name": "label", "url": "Column.html#config_label", "type": "config"}, {"access": "", "host": "Column", "name": "labelChange", "url": "Column.html#event_labelChange", "type": "event"}, {"access": "", "host": "DataTableSort", "name": "lastSortedBy", "url": "DataTableSort.html#config_lastSortedBy", "type": "config"}, {"access": "", "host": "DataTableSort", "name": "lastSortedByChange", "url": "DataTableSort.html#event_lastSortedByChange", "type": "event"}, {"access": "", "host": "DataTableDataSource", "name": "load", "url": "DataTableDataSource.html#method_load", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "_msgNode", "url": "DataTable.Base.html#property__msgNode", "type": "property"}, {"access": "", "host": "Column", "name": "NAME", "url": "Column.html#property_NAME", "type": "property"}, {"access": "", "host": "Columnset", "name": "NAME", "url": "Columnset.html#property_NAME", "type": "property"}, {"access": "", "host": "DataTable.Base", "name": "NAME", "url": "DataTable.Base.html#property_NAME", "type": "property"}, {"access": "", "host": "DataTableDataSource", "name": "NAME", "url": "DataTableDataSource.html#property_NAME", "type": "property"}, {"access": "", "host": "DataTableSort", "name": "NAME", "url": "DataTableSort.html#property_NAME", "type": "property"}, {"access": "", "host": "DataTableDataSource", "name": "NS", "url": "DataTableDataSource.html#property_NS", "type": "property"}, {"access": "", "host": "DataTableSort", "name": "NS", "url": "DataTableSort.html#property_NS", "type": "property"}, {"access": "", "host": "DataTableDataSource", "name": "onDataReturnInitializeTable", "url": "DataTableDataSource.html#method_onDataReturnInitializeTable", "type": "method"}, {"access": "protected", "host": "DataTableSort", "name": "_onEventSortColumn", "url": "DataTableSort.html#method__onEventSortColumn", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_onScroll", "url": "DataTableScroll.html#method__onScroll", "type": "method"}, {"access": "", "host": "Column", "name": "parent", "url": "Column.html#property_parent", "type": "property"}, {"access": "private", "host": "DataTableScroll", "name": "_parentContainer", "url": "DataTableScroll.html#property__parentContainer", "type": "property"}, {"access": "private", "host": "DataTableScroll", "name": "_parentMsgNode", "url": "DataTableScroll.html#property__parentMsgNode", "type": "property"}, {"access": "private", "host": "DataTableScroll", "name": "_parentTableNode", "url": "DataTableScroll.html#property__parentTableNode", "type": "property"}, {"access": "private", "host": "DataTableScroll", "name": "_parentTbodyNode", "url": "DataTableScroll.html#property__parentTbodyNode", "type": "property"}, {"access": "private", "host": "DataTableScroll", "name": "_parentTheadNode", "url": "DataTableScroll.html#property__parentTheadNode", "type": "property"}, {"access": "", "host": "DataTable.Base", "name": "recordset", "url": "DataTable.Base.html#config_recordset", "type": "config"}, {"access": "", "host": "DataTable.Base", "name": "recordsetChange", "url": "DataTable.Base.html#event_recordsetChange", "type": "event"}, {"access": "private", "host": "DataTableScroll", "name": "_removeCaptionNode", "url": "DataTableScroll.html#method__removeCaptionNode", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "renderUI", "url": "DataTable.Base.html#method_renderUI", "type": "method"}, {"access": "", "host": "DataTableScroll", "name": "renderUI", "url": "DataTableScroll.html#method_renderUI", "type": "method"}, {"access": "", "host": "Column", "name": "rowSpan", "url": "Column.html#property_rowSpan", "type": "property"}, {"access": "private", "host": "DataTableScroll", "name": "scroll", "url": "DataTableScroll.html#config_scroll", "type": "config"}, {"access": "", "host": "DataTableScroll", "name": "scrollChange", "url": "DataTableScroll.html#event_scrollChange", "type": "event"}, {"access": "private", "host": "Columnset", "name": "_setColSpans", "url": "Columnset.html#method__setColSpans", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "_setColumnset", "url": "DataTable.Base.html#method__setColumnset", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setContentBoxDimensions", "url": "DataTableScroll.html#method__setContentBoxDimensions", "type": "method"}, {"access": "private", "host": "DataTableDataSource", "name": "_setDataSource", "url": "DataTableDataSource.html#method__setDataSource", "type": "method"}, {"access": "private", "host": "Columnset", "name": "_setDefinitions", "url": "Columnset.html#method__setDefinitions", "type": "method"}, {"access": "private", "host": "Columnset", "name": "_setHeaders", "url": "Columnset.html#method__setHeaders", "type": "method"}, {"access": "private", "host": "DataTableDataSource", "name": "_setInitialRequest", "url": "DataTableDataSource.html#method__setInitialRequest", "type": "method"}, {"access": "private", "host": "DataTableSort", "name": "_setLastSortedBy", "url": "DataTableSort.html#method__setLastSortedBy", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setOverhangValue", "url": "DataTableScroll.html#method__setOverhangValue", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "_setRecordset", "url": "DataTable.Base.html#method__setRecordset", "type": "method"}, {"access": "private", "host": "Columnset", "name": "_setRowSpans", "url": "Columnset.html#method__setRowSpans", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setStylesForTbody", "url": "DataTableScroll.html#method__setStylesForTbody", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setStylesForThead", "url": "DataTableScroll.html#method__setStylesForThead", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setUpNodes", "url": "DataTableScroll.html#method__setUpNodes", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setUpParentMessageNode", "url": "DataTableScroll.html#method__setUpParentMessageNode", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setUpParentTableNode", "url": "DataTableScroll.html#method__setUpParentTableNode", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setUpParentTbodyNode", "url": "DataTableScroll.html#method__setUpParentTbodyNode", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_setUpParentTheadNode", "url": "DataTableScroll.html#method__setUpParentTheadNode", "type": "method"}, {"access": "", "host": "DataTable.Base", "name": "summary", "url": "DataTable.Base.html#config_summary", "type": "config"}, {"access": "", "host": "DataTable.Base", "name": "summaryChange", "url": "DataTable.Base.html#event_summaryChange", "type": "event"}, {"access": "private", "host": "DataTableScroll", "name": "_syncScroll", "url": "DataTableScroll.html#method__syncScroll", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_syncScrollOverhang", "url": "DataTableScroll.html#method__syncScrollOverhang", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_syncScrollX", "url": "DataTableScroll.html#method__syncScrollX", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_syncScrollY", "url": "DataTableScroll.html#method__syncScrollY", "type": "method"}, {"access": "private", "host": "Column", "name": "syncUI", "url": "Column.html#method_syncUI", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "syncUI", "url": "DataTable.Base.html#method_syncUI", "type": "method"}, {"access": "", "host": "DataTableScroll", "name": "syncUI", "url": "DataTableScroll.html#method_syncUI", "type": "method"}, {"access": "private", "host": "DataTableScroll", "name": "_syncWidths", "url": "DataTableScroll.html#method__syncWidths", "type": "method"}, {"access": "private", "host": "DataTable.Base", "name": "_tbodyNode", "url": "DataTable.Base.html#property__tbodyNode", "type": "property"}, {"access": "", "host": "DataTable.Base", "name": "tdTemplate", "url": "DataTable.Base.html#property_tdTemplate", "type": "property"}, {"access": "", "host": "DataTable.Base", "name": "tdValueTemplate", "url": "DataTable.Base.html#config_tdValueTemplate", "type": "config"}, {"access": "", "host": "DataTable.Base", "name": "tdValueTemplateChange", "url": "DataTable.Base.html#event_tdValueTemplateChange", "type": "event"}, {"access": "", "host": "DataTableSort", "name": "template", "url": "DataTableSort.html#config_template", "type": "config"}, {"access": "", "host": "DataTableSort", "name": "templateChange", "url": "DataTableSort.html#event_templateChange", "type": "event"}, {"access": "private", "host": "DataTable.Base", "name": "_theadNode", "url": "DataTable.Base.html#property__theadNode", "type": "property"}, {"access": "", "host": "Column", "name": "thNode", "url": "Column.html#property_thNode", "type": "property"}, {"access": "", "host": "DataTable.Base", "name": "thTemplate", "url": "DataTable.Base.html#property_thTemplate", "type": "property"}, {"access": "", "host": "DataTable.Base", "name": "thValueTemplate", "url": "DataTable.Base.html#config_thValueTemplate", "type": "config"}, {"access": "", "host": "DataTable.Base", "name": "thValueTemplateChange", "url": "DataTable.Base.html#event_thValueTemplateChange", "type": "event"}, {"access": "", "host": "Columnset", "name": "tree", "url": "Columnset.html#property_tree", "type": "property"}, {"access": "", "host": "DataTableSort", "name": "trigger", "url": "DataTableSort.html#config_trigger", "type": "config"}, {"access": "", "host": "DataTableSort", "name": "triggerChange", "url": "DataTableSort.html#event_triggerChange", "type": "event"}, {"access": "", "host": "DataTable.Base", "name": "trTemplate", "url": "DataTable.Base.html#config_trTemplate", "type": "config"}, {"access": "", "host": "DataTable.Base", "name": "trTemplateChange", "url": "DataTable.Base.html#event_trTemplateChange", "type": "event"}, {"access": "protected", "host": "Column", "name": "_uiSetAbbr", "url": "Column.html#method__uiSetAbbr", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_uiSetCaption", "url": "DataTable.Base.html#method__uiSetCaption", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_uiSetColumnset", "url": "DataTable.Base.html#method__uiSetColumnset", "type": "method"}, {"access": "protected", "host": "DataTableSort", "name": "_uiSetLastSortedBy", "url": "DataTableSort.html#method__uiSetLastSortedBy", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_uiSetRecordset", "url": "DataTable.Base.html#method__uiSetRecordset", "type": "method"}, {"access": "protected", "host": "DataTable.Base", "name": "_uiSetSummary", "url": "DataTable.Base.html#method__uiSetSummary", "type": "method"}, {"access": "", "host": "DataTableScroll", "name": "width", "url": "DataTableScroll.html#config_width", "type": "config"}, {"access": "", "host": "DataTableScroll", "name": "widthChange", "url": "DataTableScroll.html#event_widthChange", "type": "event"}];
</script>
</body>
</html>
